/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cmti.skeleton.dto;

import com.cmti.commons.util.DataGridModel;
import com.cmti.skeleton.entity.SysLog;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;

/**
 *
 * @author danny
 */
public class SysLogDto extends SysLog {
    
    private DataGridModel dgm;  // 分页工具
    
    private Exception exception;       // 操作失败时的异常对象
    
    /* 以下是多表关联字段 */
    private String sysUserAccount;  // 操作者账号
    
    /* 以下是页面查询条件 */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date beginTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date endTime;

    /**
     * @return the dgm
     */
    public DataGridModel getDgm() {
        return dgm;
    }

    /**
     * @param dgm the dgm to set
     */
    public void setDgm(DataGridModel dgm) {
        this.dgm = dgm;
    }

    /**
     * @return the sysUserAccount
     */
    public String getSysUserAccount() {
        return sysUserAccount;
    }

    /**
     * @param sysUserAccount the sysUserAccount to set
     */
    public void setSysUserAccount(String sysUserAccount) {
        this.sysUserAccount = sysUserAccount;
    }

    /**
     * @return the beginTime
     */
    public Date getBeginTime() {
        return beginTime;
    }

    /**
     * @param beginTime the beginTime to set
     */
    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    /**
     * @return the endTime
     */
    public Date getEndTime() {
        return endTime;
    }

    /**
     * @param endTime the endTime to set
     */
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    /**
     * @return the ex
     */
    public Exception getException() {
        return exception;
    }

    /**
     * @param exception the ex to set
     */
    public void setException(Exception exception) {
        this.exception = exception;
    }
    
}
